home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / IFC_112 / netscape / util / NoSuchElementException.java < prev    next >
Encoding:
Text File  |  1999-05-28  |  687 b   |  24 lines  |  [TEXT/CWIE]

  1. // NoSuchElementException.java
  2. // By Ned Etcode
  3. // Copyright 1995, 1996, 1997 Netscape Communications Corp.  All rights reserved.
  4.  
  5. package netscape.util;
  6.  
  7. /** RuntimeException signaling that an Enumeration is empty. Enumerations
  8.   * throw this exception when <b>nextElement()</b> is called but the
  9.   * Enumeration is empty.
  10.   * @see Enumeration
  11.   */
  12. public class NoSuchElementException extends RuntimeException {
  13.     /** Constructs a NoSuchElementException with no message. */
  14.     public NoSuchElementException() {
  15.         super();
  16.     }
  17.  
  18.     /** Constructs a NoSuchElementException with a descriptive message. */
  19.     public NoSuchElementException(String s) {
  20.         super(s);
  21.     }
  22. }
  23.  
  24.